﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.FactoryManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.FactoryManagement.LineShiftVMs
{
    public partial class LineShiftBatchVM : BaseBatchVM<LineShift, LineShift_BatchEdit>
    {
        public LineShiftBatchVM()
        {
            ListVM = new LineShiftListVM();
            LinkedVM = new LineShift_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class LineShift_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._LineShift._Line")]
        public long? LineId { get; set; }
        [Display(Name = "_Model._LineShift._LineName")]
        public string LineName { get; set; }
        [Display(Name = "_Model._LineShift._Name")]
        public string Name { get; set; }
        [Display(Name = "_Model._LineShift._Code")]
        public string Code { get; set; }
        [Display(Name = "_Model._LineShift._StartTime")]
        public DateTime? StartTime { get; set; }
        [Display(Name = "_Model._LineShift._EndTime")]
        public DateTime? EndTime { get; set; }
        [Display(Name = "_Model._LineShift._Hours")]
        public decimal? Hours { get; set; }
        [Display(Name = "_Model._LineShift._CrossDays")]
        public bool? CrossDays { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}